package pojo;

import java.security.PrivateKey;

public class Commodity {
    private int id;//编号
    private String name;//名字
    private String data;//日期
    private String expirationData;//保质期
    private String manufacturer;//生厂商
    private int price;//价格
    private boolean isBorrow;


    public Commodity(int id, String name, String data, String expirationData, String manufacturer, int price) {
        this.id = id;
        this.name = name;
        this.data = data;
        this.expirationData = expirationData;
        this.manufacturer = manufacturer;
        this.price = price;

    }

    public Commodity() {

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getExpirationData() {
        return expirationData;
    }

    public void setExpirationData(String expirationData) {
        this.expirationData = expirationData;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public boolean isBorrow() {
        return isBorrow;
    }

    public void setBorrow(boolean borrow) {
        isBorrow = borrow;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", data='" + data + '\'' +
                ", expirationData='" + expirationData + '\'' +
                ", manufacturer='" + manufacturer + '\'' +
                ", price=" + price +
                '}';
    }




}
